Database Drivers and URL Configurations
Since Tomcat doesn't have any UI, all the data sources should be created manually in <%CATALINA_BASE%>\conf\Catalina\<HostName>\<App_DeploymentName>.xml. file in conf directory. Below are the parameters and their corresponding values for different databases.
Drivers Details
|
Oracle jdbcDriver = oracle.jdbc.driver.OracleDriver jdbcUrl = jdbc:oracle:thin:@<host>:<port>:<sid>
DB2
Example:
jdbcUrl = jdbc:db2://<host>:<port>/<databasename>:currentSchema= <schemaname>; currentFunctionPath=SYSIBM,SYSFUN,SYSPROC,SYSIBMADM,SYSHADOOP,USERNAME,SCHEMANAME;
SQLServer
jdbcDriver = com.microsoft.sqlserver.jdbc.jdbcDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver jdbcUrl = jdbc:sqlserver://<host>:<port>;DatabaseName=<databasename>
Example: For SQL Server When the encrypt property is set to true and the trustServerCertificate property is set to true, the Microsoft JDBC Driver for SQL Server won't validate the SQL Server TLS certificate. This setting is common for allowing connections in test environments, such as where the SQL Server instance has only a self-signed certificate. jdbcUrl = jdbc:sqlserver://<host>:<port>;DatabaseName=<databasename>;encrypt=true;trustServerCertificate=true |
-
Copy the database drivers into lib directory of Tomcat (%Tomcat_Home%/lib) folder.
-
Oracle – The necessary driver, ojdbc17-23.6.0.24.10.jar, is included in the libs directory of the OIPA Media Pack.
-
Please note that version 12.2.0.0 is also supported on Oracle 19c, which is LTS (Long Term Support). If Oracle 19c is used, the corresponding supported ojdbc driver version shipped with Oracle database should be used in the step above.
-
-
Microsoft SQL Server – Use the compatible jdbc driver shipped with MS SQL Server software. These files are not available for download. Contact your IT department if you need assistance locating these files.
-
IBM DB2 – Use the compatible jdbc driver shipped with DB2 software. These files are not available for download. Contact your IT department if you need assistance locating these files.
-